import http from "@/api";
// import { ResPage } from "@/api/interface/index";
import { Forward } from "@/api/interface/iot";

/**
 * @name 硬网关管理模块
 */

// * 获取硬列表
export const getServerList = (params: Forward.ReqServer) => {
	return http.get(`/forward/server/find`, params);
};
// * 新增硬列表
export const addServer = (params: Forward.ResServer) => {
	return http.post(`/forward/server/add`, params);
};
// * 删除硬列表
export const delServer = (params: Forward.ResServer) => {
	return http.post(`/forward/server/remove`, params);
};
// * 编辑硬列表
export const modServer = (params: Forward.ResServer) => {
	return http.post(`/forward/server/modify`, params);
};
// * 测试服务
export const testServer = (params: Forward.ResServer) => {
	return http.post(`/forward/server/test`, params);
};
